package com.gljx.web.dao;

import com.gljx.web.Entity.InwareHouseEntry;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface InwareHouseEntryMapper {

    void deleteByfparemtId(String fparemtId);

    int deleteByPrimaryKey(String fid);

    int insert(InwareHouseEntry record);

    int insertSelective(InwareHouseEntry record);

    InwareHouseEntry selectByPrimaryKey(String fid);

    int updateByPrimaryKeySelective(InwareHouseEntry record);

    int updateByPrimaryKey(InwareHouseEntry record);


    /**
     * 批量增加
     * @param list
     * @return
     */
     int addInwareHouseEntry(@Param("list")List<InwareHouseEntry> list);

    /**
     *批量修改
     * @param list
     * @return
     */
     int updatBatch(@Param("list")List<InwareHouseEntry> list);
    /**
     *批量删除
     * @param fparemtId
     * @return
     */
     int deleteInwareHouseEntry(String[] fparemtId);

    /**
     * 通过父表id获取对象
     * @param fparentid
     * @return
     */
    List<InwareHouseEntry> selecInwareHousetByfparentid(@Param("fparentid") String fparentid);

    /**
     *
     * @param fparentid
     * @param rkGoodsname
     * @param rkGoodstype
     * @return
     */
    List<InwareHouseEntry> selecInwareHousetBygoodsStyle(@Param("fparentid")String fparentid, @Param("rkGoodsname")String rkGoodsname, @Param("rkGoodstype")String rkGoodstype);

    /**
     *map查询
     * @param map
     * @return
     */
    List<InwareHouseEntry> selectInwareHouseByInfo(Map<String, String> map);

}